package game.Enemty;

import java.awt.*;

public class Obstacle  {
    public int x,y;//障碍物的坐标
    public int type;//障碍物的类型，1为实体障碍物，2可破坏的障碍物,3为幸运方块,4为管子，
    public Image image;
    public int width=50,height=50;
    public Obstacle(int x, int y, int type, Image image) {
        this.x = x;
        this.y = y;
        this.type = type;
        this.image = image;

    }

    public Obstacle(int x, int y, int type, Image image, int width, int height) {
        this.x = x;
        this.y = y;
        this.type = type;
        this.image = image;
        this.width = width;
        this.height = height;
    }
}
